<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta http-equiv="X-UA-Compatible" content="IE=edge" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>class选择器</title>
    <style>
      p {
        color: yellow;
      }

      #ma {
        color: orange;
      }

      /* 
        class类选择器 [多个] [权重: 0,1,0]

        可以同时控制多个指定的元素样式
        权重:
        id > class > 标签
        100   010    001
      */
      .cp {
        color: orangered;
      }

      .info {
        font-size: 30px;
      }

      .info2 {
        font-size: 20px;
      }
    </style>
  </head>
  <body>
    <p id="ma" class="cp">百度百科1</p>
    <p class="cp">百度百科2</p>
    <p>百度百科3</p>
    <p class="cp info">百度百科4</p>
    <p class="cp">百度百科5</p>

    <span class="cp info2">span1</span>
    <span class="cp info2">span2</span>
  </body>
</html>
